import 'package:flutter/material.dart';
import 'package:rwini_edit/config/config.dart';

class RawiniPage extends StatelessWidget {
  const RawiniPage({super.key, required this.text});
  final List<String> text;

  @override
  Widget build(BuildContext context) {
    return ListView.builder(
        itemCount: text.length,
        itemBuilder: (ctx, i) {
          Color c = Colors.black;
          if (text[i].startsWith("[")) {
            c = Colors.blue;
          }
          return Text(
            text[i],
            style: TextStyle(
              fontSize: conf.fontsise,
              color: c,
            ),
          );
        });
  }
}
